<script>
import {defineComponent} from 'vue'

export default defineComponent({
    name: "Child",
    props:["value"],
    mounted(){
        console.log(this);
    }
})
</script>

<template>
    <div>
        <h3>Child</h3>
        <button @click="$emit('input',value+1)">{{value}}</button>
    </div>
</template>

<style scoped>

</style>